package com.cunshe.domain;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * message_board
 * @author 
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MessageBoard implements Serializable {

    /**
     * ID
     */
    private Long id;

    /**
     * 姓名
     */
    @NotBlank(message = "[name]不能为空")
    @Size(max = 255, message = "[name]长度不能大于{max}")
    private String name;

    /**
     * 电话
     */
    @NotBlank(message = "[name]不能为空")
    @Size(max = 20, message = "[name]长度不能大于{max}")
    private String tel;

    /**
     * 邮箱
     */
    @NotBlank(message = "[email]不能为空")
    @Size(max = 255, message = "[email]长度不能大于{max}")
    private String email;

    /**
     * 地址
     */
    @NotBlank(message = "[address]不能为空")
    @Size(max = 255, message = "[address]长度不能大于{max}")
    private String address;

    /**
     * 内容
     */
    @NotBlank(message = "[content]不能为空")
    @Size(max = 1000, message = "[content]长度不能大于{max}")
    private String content;

    /**
     * 时间
     */
    private Date createtime;

    private static final long serialVersionUID = 1L;
}